Optimal. Leaf size=278 \[ \frac{\sqrt{a^2 c-b^2 c x^2} \left (A f^2-B e f+C e^2\right ) \tan ^{-1}\left (\frac{\sqrt{c} \left (a^2 f+b^2 e x\right )}{\sqrt{a^2 c-b^2 c x^2} \sqrt{b^2 e^2-a^2 f^2}}\right )}{\sqrt{c} f^2 \sqrt{a+b x} \sqrt{a c-b c x} \sqrt{b^2 e^2-a^2 f^2}}-\frac{\sqrt{a^2 c-b^2 c x^2} (C e-B f) \tan ^{-1}\left (\frac{b \sqrt{c} x}{\sqrt{a^2 c-b^2 c x^2}}\right )}{b \sqrt{c} f^2 \sqrt{a+b x} \sqrt{a c-b c x}}-\frac{C \left (a^2-b^2 x^2\right )}{b^2 f \sqrt{a+b x} \sqrt{a c-b c x}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.916448, antiderivative size = 278, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.175 \[ \frac{\sqrt{a^2 c-b^2 c x^2} \left (A f^2-B e f+C e^2\right ) \tan ^{-1}\left (\frac{\sqrt{c} \left (a^2 f+b^2 e x\right )}{\sqrt{a^2 c-b^2 c x^2} \sqrt{b^2 e^2-a^2 f^2}}\right )}{\sqrt{c} f^2 \sqrt{a+b x} \sqrt{a c-b c x} \sqrt{b^2 e^2-a^2 f^2}}-\frac{\sqrt{a^2 c-b^2 c x^2} (C e-B f) \tan ^{-1}\left (\frac{b \sqrt{c} x}{\sqrt{a^2 c-b^2 c x^2}}\right )}{b \sqrt{c} f^2 \sqrt{a+b x} \sqrt{a c-b c x}}-\frac{C \left (a^2-b^2 x^2\right )}{b^2 f \sqrt{a+b x} \sqrt{a c-b c x}} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x + C*x^2)/(Sqrt[a + b*x]*Sqrt[a*c - b*c*x]*(e + f*x)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 108.663, size = 219, normalized size = 0.79 \[ \frac{2 C a \operatorname{atan}{\left (\frac{\sqrt{a c - b c x}}{\sqrt{c} \sqrt{a + b x}} \right )}}{b^{2} \sqrt{c} f} - \frac{C \sqrt{a + b x} \sqrt{a c - b c x}}{b^{2} c f} - \frac{2 \left (A f^{2} - B e f + C e^{2}\right ) \operatorname{atanh}{\left (\frac{\sqrt{c} \sqrt{a + b x} \sqrt{a f + b e}}{\sqrt{a c - b c x} \sqrt{a f - b e}} \right )}}{\sqrt{c} f^{2} \sqrt{a f - b e} \sqrt{a f + b e}} - \frac{2 \left (B b f + C a f - C b e\right ) \operatorname{atan}{\left (\frac{\sqrt{a c - b c x}}{\sqrt{c} \sqrt{a + b x}} \right )}}{b^{2} \sqrt{c} f^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((C*x**2+B*x+A)/(f*x+e)/(b*x+a)**(1/2)/(-b*c*x+a*c)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.7064, size = 238, normalized size = 0.86 \[ \frac{\frac{\sqrt{a-b x} \log (e+f x) \left (f (A f-B e)+C e^2\right )}{\sqrt{a^2 f^2-b^2 e^2}}-\frac{\sqrt{a-b x} \left (f (A f-B e)+C e^2\right ) \log \left (\sqrt{a-b x} \sqrt{a+b x} \sqrt{a^2 f^2-b^2 e^2}+a^2 f+b^2 e x\right )}{\sqrt{a^2 f^2-b^2 e^2}}+\frac{C f \sqrt{a+b x} (b x-a)}{b^2}+\frac{\sqrt{a-b x} \tan ^{-1}\left (\frac{b x}{\sqrt{a-b x} \sqrt{a+b x}}\right ) (B f-C e)}{b}}{f^2 \sqrt{c (a-b x)}} \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x + C*x^2)/(Sqrt[a + b*x]*Sqrt[a*c - b*c*x]*(e + f*x)),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0., size = 503, normalized size = 1.8 \[{\frac{1}{{b}^{2}{f}^{3}c} \left ( -A\ln \left ( 2\,{\frac{1}{fx+e} \left ({b}^{2}cex+{a}^{2}cf+\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }\sqrt{{\frac{c \left ({a}^{2}{f}^{2}-{b}^{2}{e}^{2} \right ) }{{f}^{2}}}}f \right ) } \right ){b}^{2}c{f}^{2}\sqrt{{b}^{2}c}+B\ln \left ( 2\,{\frac{1}{fx+e} \left ({b}^{2}cex+{a}^{2}cf+\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }\sqrt{{\frac{c \left ({a}^{2}{f}^{2}-{b}^{2}{e}^{2} \right ) }{{f}^{2}}}}f \right ) } \right ){b}^{2}cef\sqrt{{b}^{2}c}+B\arctan \left ({x\sqrt{{b}^{2}c}{\frac{1}{\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }}}} \right ){b}^{2}c{f}^{2}\sqrt{{\frac{c \left ({a}^{2}{f}^{2}-{b}^{2}{e}^{2} \right ) }{{f}^{2}}}}-C\ln \left ( 2\,{\frac{1}{fx+e} \left ({b}^{2}cex+{a}^{2}cf+\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }\sqrt{{\frac{c \left ({a}^{2}{f}^{2}-{b}^{2}{e}^{2} \right ) }{{f}^{2}}}}f \right ) } \right ){b}^{2}c{e}^{2}\sqrt{{b}^{2}c}-C\arctan \left ({x\sqrt{{b}^{2}c}{\frac{1}{\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }}}} \right ){b}^{2}cef\sqrt{{\frac{c \left ({a}^{2}{f}^{2}-{b}^{2}{e}^{2} \right ) }{{f}^{2}}}}-C{f}^{2}\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }\sqrt{{\frac{c \left ({a}^{2}{f}^{2}-{b}^{2}{e}^{2} \right ) }{{f}^{2}}}}\sqrt{{b}^{2}c} \right ) \sqrt{bx+a}\sqrt{-c \left ( bx-a \right ) }{\frac{1}{\sqrt{{\frac{c \left ({a}^{2}{f}^{2}-{b}^{2}{e}^{2} \right ) }{{f}^{2}}}}}}{\frac{1}{\sqrt{{b}^{2}c}}}{\frac{1}{\sqrt{-c \left ({b}^{2}{x}^{2}-{a}^{2} \right ) }}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((C*x^2+B*x+A)/(f*x+e)/(b*x+a)^(1/2)/(-b*c*x+a*c)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)/(sqrt(-b*c*x + a*c)*sqrt(b*x + a)*(f*x + e)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)/(sqrt(-b*c*x + a*c)*sqrt(b*x + a)*(f*x + e)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{A + B x + C x^{2}}{\sqrt{- c \left (- a + b x\right )} \sqrt{a + b x} \left (e + f x\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x**2+B*x+A)/(f*x+e)/(b*x+a)**(1/2)/(-b*c*x+a*c)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.279442, size = 358, normalized size = 1.29 \[ -\frac{{\left (B \sqrt{-c} f - C \sqrt{-c} e\right )}{\rm ln}\left ({\left (\sqrt{-b c x + a c} \sqrt{-c} - \sqrt{2 \, a c^{2} +{\left (b c x - a c\right )} c}\right )}^{2}\right )}{b f^{2}{\left | c \right |}} - \frac{\sqrt{2 \, a c^{2} +{\left (b c x - a c\right )} c} \sqrt{-b c x + a c} C{\left | c \right |}}{b^{2} c^{3} f} - \frac{2 \,{\left (A \sqrt{-c} c^{2} f^{2} - B \sqrt{-c} c^{2} f e + C \sqrt{-c} c^{2} e^{2}\right )} \arctan \left (\frac{2 \, b c^{2} e +{\left (\sqrt{-b c x + a c} \sqrt{-c} - \sqrt{2 \, a c^{2} +{\left (b c x - a c\right )} c}\right )}^{2} f}{2 \, \sqrt{a^{2} f^{2} - b^{2} e^{2}} c^{2}}\right )}{\sqrt{a^{2} f^{2} - b^{2} e^{2}} c^{2} f^{2}{\left | c \right |}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((C*x^2 + B*x + A)/(sqrt(-b*c*x + a*c)*sqrt(b*x + a)*(f*x + e)),x, algorithm="giac")
[Out]